#ifndef __LED_H
#define __LED_H	 
#include "main.h"

#define LED_R_PORT 		GPIOB
#define LED_R_PIN 		((customer_code==CUST_SZZA)?GPIO_PIN_12:GPIO_PIN_14)
#define LED_R_ON		PORT_ClrBit(LED_R_PORT,LED_R_PIN)
#define LED_R_OFF		PORT_SetBit(LED_R_PORT,LED_R_PIN)

#define LED_R2_PORT 	GPIOB
#define LED_R2_PIN 		GPIO_PIN_14
#define LED_R2_ON		__NOP()
#define LED_R2_OFF		__NOP()

#define LED_G_PORT 		GPIOB
#define LED_G_PIN 		((customer_code==CUST_SZZA)?GPIO_PIN_14:GPIO_PIN_12)
#define LED_G_ON		PORT_ClrBit(LED_G_PORT,LED_G_PIN)
#define LED_G_OFF		PORT_SetBit(LED_G_PORT,LED_G_PIN)

#define LED_Y_PORT 		GPIOB
#define LED_Y_PIN 		GPIO_PIN_13
#define LED_Y_ON		PORT_ClrBit(LED_Y_PORT,LED_Y_PIN)
#define LED_Y_OFF		PORT_SetBit(LED_Y_PORT,LED_Y_PIN)

#define LED_ALL_ON		LED_R_ON;LED_G_ON;LED_Y_ON;LED_R2_ON
#define LED_ALL_OFF		LED_R_OFF;LED_G_OFF;LED_Y_OFF;LED_R2_OFF
void led_init(void);	

#endif
